/**
 * 流程图常量配置
 */

/**
 * 默认配置
 */
export const DEFAULT_CONFIG = {
  nodeWidth: 160,
  nodeHeight: 100,
  horizontalSpacing: 240,
  verticalSpacing: 140,
  padding: 20,
  showLegend: true,
  enableZoom: false,
  enablePan: false,
  direction: 'horizontal',
  autoResize: true,
};

/**
 * 连接线类型配置
 */
export const CONNECTION_TYPES = {
  serial: {
    label: '串行',
    color: '#714b67',
    lineWidth: 2,
  },
  parallel: {
    label: '并行分支',
    color: '#52c41a',
    lineWidth: 3,
  },
  merge: {
    label: '并行合并',
    color: '#fa8c16',
    lineWidth: 3,
  },
  'parallel-merge': {
    label: '并行+合并',
    color: '#1890ff',
    lineWidth: 3,
  },
};

/**
 * 节点状态配置
 */
export const NODE_STATUS = {
  default: {
    label: '默认',
    color: '#714b67',
  },
  success: {
    label: '成功',
    color: '#52c41a',
  },
  warning: {
    label: '警告',
    color: '#fa8c16',
  },
  error: {
    label: '错误',
    color: '#f5222d',
  },
  processing: {
    label: '处理中',
    color: '#1890ff',
  },
};

/**
 * 最小画布尺寸
 */
export const MIN_CANVAS_SIZE = {
  width: 400,
  height: 200,
};

